package com.asap.demo.mysql.util;

import java.io.Serializable;
import java.util.Map;

/**
 * 
 * @author ww
 *
 */
public interface Event extends Serializable {

	/**
	 * 
	 * @return event id
	 */
	String getId();
	
	/**
	 * 
	 * @param name name of field
	 * @return value of field
	 */
	Object getField(String name);
	
	/**
	 * 
	 * @param name name of field
	 * @param value value of field
	 */
	void addField(String name, String value);
	
	/**
	 * 
	 * @return All of fields
	 */
	Map<String, Object> getAllFields();
	
	/**
	 * 
	 * @return json of event
	 */
	String toString();
}
